<script>
import BaseViewForm from '../components/baseForm/view';

export default {
    props: {},
    extends: BaseViewForm,
    data() {
        return {}
    },
    methods: {
        fetchData: function () {
            const { formName, parentName } = this;
            this.$x.get('/orginfo/orgOperation/orgDetail', { id: this.id })
                .then(({ data }) => {
                    this.formNames = formName;
                    this.values = this.formatViewData(formName, Object.assign({}, data, { parentName }));
                    this.ready = true;
                });
        }
    }
}
</script>
